package sz.szsmk.citizencard.mvp.contract;

import java.util.List;

import sz.szsmk.citizencard.model.network.bean.response.NoticeListRes;
import sz.szsmk.citizencard.model.network.bean.response.NoticeMainres;
import sz.szsmk.citizencard.ui.base.IBaseContact;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/6/4 19:59
 * description:
 */
public interface INewsContact {

    interface INewsPresenter<T extends IBaseContact.IBaseView> extends IBaseContact.IBasePresenter {
        void getMainNotice();

        void queryAndSearch(String word);

        void changeIsRead(String id, String type);

        void delItem(String id);
    }

    interface INewsView extends IBaseContact.IBaseView {

        void getMainNoticeError(String message);

        void getMainNoticeSucc(List<NoticeMainres.MainPageInfoListBean> mainPageInfoList);

        void queryAndSearchSucc(List<NoticeListRes.MessageDetailListBean> detailList);

        void queryAndSearchFail(NoticeListRes response);

        void delItemSucc();

        void delItemFail(String message);

    }

}
